package com.qinggeng.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import com.qinggeng.framework.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 用户消费对象 user_consume
 * 
 * @author qinggeng
 * @date 2020-06-30
 */
@Data
public class UserConsume extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消费ID */
    private Long consumeId;

    /** 消费类型 10=提现 20=配送收益 30=购买商品 40=商品退款 */
    @Excel(name = "消费类型 10=提现 20=配送收益 30=购买商品 40=商品退款")
    private String consumeType;

    /** 消费金额 */
    @Excel(name = "消费金额")
    private BigDecimal consumePrice;

    /** 消费标识 */
    @Excel(name = "消费标识")
    private String consumeMark;

    /** 消费标题 */
    @Excel(name = "消费标题")
    private String consumeTitle;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 关联ID */
    @Excel(name = "关联ID")
    private Long fkId;


    public Long getConsumeId() {
        return consumeId;
    }

    public void setConsumeId(Long consumeId) {
        this.consumeId = consumeId;
    }

    public String getConsumeType() {
        return consumeType;
    }

    public void setConsumeType(String consumeType) {
        this.consumeType = consumeType;
    }

    public BigDecimal getConsumePrice() {
        return consumePrice;
    }

    public void setConsumePrice(BigDecimal consumePrice) {
        this.consumePrice = consumePrice;
    }

    public String getConsumeMark() {
        return consumeMark;
    }

    public void setConsumeMark(String consumeMark) {
        this.consumeMark = consumeMark;
    }

    public String getConsumeTitle() {
        return consumeTitle;
    }

    public void setConsumeTitle(String consumeTitle) {
        this.consumeTitle = consumeTitle;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getFkId() {
        return fkId;
    }

    public void setFkId(Long fkId) {
        this.fkId = fkId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("consumeId", getConsumeId())
            .append("consumeType", getConsumeType())
            .append("consumePrice", getConsumePrice())
            .append("consumeMark", getConsumeMark())
            .append("consumeTitle", getConsumeTitle())
            .append("userId", getUserId())
            .append("fkId", getFkId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
